import { Vec3 } from "cc";
import { BaseModel } from "../../../fwk/puremvc/BaseModel";
import { RModel } from "../../../fwk/puremvc/RegistFunc";
import { GameFacade } from "../../../fwk/puremvc/GameFacade";
export interface IItemInfo {
    score: number;
    position: Vec3;
}
@RModel(GameFacade)
export class ItemModel extends BaseModel {
    infos: IItemInfo[] = [];
    addInfo(info: IItemInfo) {
        this.infos.push(info);
    }
    removeInfo(info: IItemInfo) {
        this.infos.splice(this.infos.indexOf(info), 1);
    }

}